<?php /* Smarty version Smarty-3.1.6, created on 2017-05-16 14:36:10
         compiled from "Upload\question\20170516\vhpa3rwq2.html" */ ?>
<?php /*%%SmartyHeaderCode:15234591a9dda1547c9-17864511%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c0692673e0c66ef31742f3eea2e4fc4a92ffdb74' => 
    array (
      0 => 'Upload\\question\\20170516\\vhpa3rwq2.html',
      1 => 1494916567,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15234591a9dda1547c9-17864511',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_591a9dda1a7a5',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_591a9dda1a7a5')) {function content_591a9dda1a7a5($_smarty_tpl) {?><strong>
<p class="MsoNormal">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">有以下程序 </span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">#include &lt;stdio.h&gt;</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">void f(int *x, int *y)</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">{</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:21.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">int t;</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:21.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">t=*x;*x=*y;*y=t;</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">} </span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">int main() </span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">{ </span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:21.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">int a[8]={1,2,3,4,5,6,7,8},i,*p,*q;</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:24.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">p=a;q=&amp;a[7]; </span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:24.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">while(p&lt;q)</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:18.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">{</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:48.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">f(p,q);</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:48.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">p++;</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:48.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">q--;</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:24.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">}</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:24.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">for(i=0;i&lt;8;i++)</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:48.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">printf("%d,",a[i]);</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal" style="text-indent:24.0000pt;">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">return 0;</span><span style="font-family:宋体;color:#000000;font-size:12.0000pt;"></span>
</p>
<p class="MsoNormal">
	<span style="font-family:宋体;color:#000000;font-size:12.0000pt;">} &nbsp;程序运行后的输出结果是</span>
</p>
</strong><?php }} ?>